//*****************************************************************************
//
// ABEC3 Solving Script
// Project: Room-Hexagon
//
//*****************************************************************************

// BEM Room-Acoustics of a hexagonal room with attached stage.
// There are two spheres tagged "Left" and "Right" and a rectangle,
// which can be used for positioning of Pressure_Points or Pressure_Box.

// The CAD-file is a COLLADA-export from Sketchup.
// In Sketchup named groups where used. The name of a group can be used
// as a tag in ABEC.


Control_Solver
  f1=10;  f2=150;  NumFrequencies=48;  Abscissa=lin;
  Dim=3D
  MeshFrequency=100Hz


// The COLLADA-file should have been registered with file-alias "M"

MeshFile_Properties
  Scale=0.001
  MeshFileAlias=M


// The CAD-file contains a group with name "Hall", which we can use as a
// mesh-file-tag. We exclude some individual triangles.

Elements "Hall-Elements"
  MeshFileAlias=M
  101  Mesh Include "Hall"  Exclude 128 129

Elements "Stage-Elements"
  MeshFileAlias=M
  101  Mesh Include "Stage"


// There is a group called "Speaker", which we use only for positioning
// the Pressure_Box.

off Elements "Speaker"
  MeshFileAlias=M
  101  Mesh Include "Speaker"

// There are two spheres in the CAD-file. One is called "left" and the other
// is called "Right". These spheres can be used to distribute Pressure_Points.

off Elements "Right"
  MeshFileAlias=M
  101  Mesh Include "Right"


// Pressure_Box is a pressure-source with directivity.
// Its position is derived from the CAD-files' group "Speaker", which is
// a rectangle. The Pressure_Box points in direction of the normal of the
// plane of this rectangle.

Pressure_Box  "PB1"
  DrvGroup=1001
  MeshFileAlias=M
  Position= Mesh  Include "Speaker"
  CabDim=1m,1.60m,0.60m


// Pressure_Points can be distributed with the help of shapes in the CAD
// drawing. Here we have drawn a sphere. On each triangle of this sphere
// there will be created a point-source.

Pressure_Points  "PP1"
  DrvGroup=1002
  MeshFileAlias=M
  MeshMode=Center
  MeshMinDistance=0.2m
  101   Mesh Include  "Right"